package com.zxl.gtion.dto;

import com.zxl.gtion.entity.ArticleInfo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author:
 * @Date 2024/3/8 14:06
 * @Version 1.0
 */
@Data
public class ArticleDTO extends ArticleInfo {
    public static final String DEFAULT = "0";
    public static final String NEW = "1";

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createBeginTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createEndTime;

    @ApiModelProperty("文章所属类目类型")
    private String type;

    @ApiModelProperty("默认还是最新排序 （默认：0 最新：1）")
    private String sortType;


}
